package org.maven.ear.jobss.mdc.spring.web.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@Controller
@RequestMapping("greet")
public class GreetController
{
  

    @RequestMapping(method = RequestMethod.GET)
    public String getInitialMessage()
    {
        return "greet";
    }

    @RequestMapping(method = RequestMethod.POST)
    public String getGreeting(@RequestParam("username")
    String username)
    {

        return "greet";
    }
}
